import propertiesConfig from "@/components/activit/configs/propertiesConfig";

export default () => {
    return {
        index: true,
        submitText: '修改',
        size: 'small',
        labelWidth: 120,
        menuType: 'menu',
        menuAlign: 'center',
        menuPosition: "right",
        column: [
            {
                label: 'id',
                span: 12,
                prop: 'id',
                editDisplay: false,
                addDisplay: false
            },
            {
                label: '变量名称',
                prop: 'variable',
                span: 12,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },
            {
                label: '判断条件',
                span: 12,
                prop: 'conditionalOpt',
                type: "select",
                dicData: propertiesConfig.sequenceFlow.conditionalOpts,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },
            {
                label: '值',
                prop: 'conditionalVal',
                span: 12,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            }, {
                label: '逻辑',
                prop: 'logic',
                span: 12,
                type: "select",
                dicData: propertiesConfig.sequenceFlow.logicOptions,
                rules: [{
                    required: false,
                    trigger: "blur"
                }]
            },

        ]
    }
}
